package com.boc.shoppingcardmodule.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.boc.shoppingcardmodule.R;
import com.boc.shoppingcardmodule.R2;
import com.jcodecraeer.xrecyclerview.XRecyclerView;

import butterknife.BindView;
import demo.bocweb.com.sdk.base.fragment.BaseFragment;
import demo.bocweb.com.sdk.config.ARoutConfig;

/**
 * Created by zhelun on 2018/2/7.
 */
@Route(path = ARoutConfig.shoppingPageFragmentPath)
public class ShoppingPageFragment extends BaseFragment {
    @BindView(R2.id.tv_title)
    TextView tvTitle;
    @BindView(R2.id.tv_menu)
    TextView tvMenu;
    @BindView(R2.id.iv_menu)
    ImageView ivMenu;
    @BindView(R2.id.toolbar)
    Toolbar toolbar;
    @BindView(R2.id.recyclerView)
    XRecyclerView recyclerView;

    @Override
    public void initUI(View view, @Nullable Bundle savedInstanceState) {
        tvTitle.setText("购物车");
        tvMenu.setVisibility(View.VISIBLE);
        tvMenu.setText("编辑");
        tvMenu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                
            }
        });
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_shopping_page;
    }


}
